package com.mmc.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 作者：李嘉浩
 * 时间：2024-09-10-14:32
 * 功能：fanout
 */

@RabbitListener(queues = "zjh")
@Component
public class RabbitmqFanoutListener02 {

    @RabbitHandler
    public void massage(String massage){
        System.out.println("zjh接收到一个消息：" + massage);
    }
}
